<!DOCTYPE html>
<html>
	<head>
		<title>XMLEd - A web based XML aware editor</title>
		<!--
			XMLeD - A browser based XML aware WYSIWIG Editor
		    Copyright (C) 2012  Alex Griessel - DITALabs

		    This program is free software: you can redistribute it and/or modify
		    it under the terms of the GNU General Public License as published by
		    the Free Software Foundation, either version 3 of the License, or
		    (at your option) any later version.

		    This program is distributed in the hope that it will be useful,
		    but WITHOUT ANY WARRANTY; without even the implied warranty of
		    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
		    GNU General Public License for more details.

		    You should have received a copy of the GNU General Public License
		    along with this program.  If not, see <http://www.gnu.org/licenses/>.
		-->
		<meta name="keywords" content="XMLeD, xml, web, editor, wysiwig" />
		<meta name="description" content="XMLeD is a browser based XML aware editor" />
		<link type="text/css" href="css/jquery.xmled.css" rel="stylesheet" />
		<link type="text/css" href="css/dita.css?v=1" rel="stylesheet" />
		
		<script type="text/javascript" language="javascript" src="js/json2xml.js"></script>
		<script type="text/javascript" language="javascript" src="js/xml2json.js"></script>
        
		<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.1/jquery.min.js"></script>

		<script type="text/javascript" src="js/uri/uri.js"></script>
    		<script type="text/javascript" src="js/uri/schemes/urn.js"></script>
    		<script type="text/javascript" src="js/jsv.js"></script>
    		<script type="text/javascript" src="js/json-schema-draft-01.js"></script>
    		<script type="text/javascript" src="js/json-schema-draft-02.js"></script>

    		<script type="text/javascript" src="js/jquery.contextmenu.r2.js"></script>
    		<script type="text/javascript" src="js/jquery.xmled.js"></script>

		<script language="javascript">
			/*
				Define static content, this can be pulled from a DITA content store, note that the DITA namespace is being used to distinguish from the housing XHTML application
			*/
			var topics = [];
			topics.push('<dita:topic id="topic_id" class="- topic/topic "><dita:title class="- topic/title ">Welcome to XMLeD!!</dita:title><dita:shortdesc class="- topic/shortdesc "> XMLeD is an open initiative for developing a browser-based XML WYSIWIG editor.</dita:shortdesc><dita:body class="- topic/body "><dita:p class="- topic/p "><dita:keyword id="xmled" class="- topic/keyword ">XMLeD</dita:keyword> is an initiative to create an Open Source XML aware browser WYSIWIG editor.</dita:p><dita:p class="- topic/p ">The following features are available:<dita:ul  class="- topic/ul "><dita:li class="- topic/li ">Written in pure and awesome HTML5, Javascript and CSS</dita:li><dita:li class="- topic/li ">Natural Word processor like behavior</dita:li><dita:li class="- topic/li ">Renders XML depending on the schema being used (currently making use of the DITA OASIS XML Schema)</dita:li><dita:li class="- topic/li ">Schema\'s are managed using JSON Schema</dita:li></dita:ul></dita:p></dita:body><dita:topic class="- topic/topic" id="todo"><dita:title class="- topic/title ">ToDo</dita:title><dita:body class="- topic/body "><dita:p class="- topic/p ">Still a whole lot of work to do before this can be considered usable:<dita:ul  class="- topic/ul "><dita:li class="- topic/li ">Update context menu with valid elements for wrapping or insertion</dita:li><dita:li class="- topic/li ">Clean up the prototype code ( DRY )</dita:li><dita:li class="- topic/li ">Implement full schema support</dita:li><dita:li class="- topic/li ">Allow for Save and Load hooks</dita:li><dita:li class="- topic/li ">Write a DTD/XSD conversion to JSON Schema</dita:li><dita:li class="- topic/li ">Do sample integration with DITALabs CMIS explorer http://ditalabs.com/demo/</dita:li><dita:li class="- topic/li ">Much much more...</dita:li></dita:ul></dita:p></dita:body></dita:topic></dita:topic>');

			// Initialize XMLeD on load
			$(document).ready(function() {
				$('.xmled').xmled({'xml': topics[0]});
			}); 
			
		</script>

		<style type='text/css'>
			* {margin:0px; padding:0px;border:1px #fff solid;}

			body {
				font-size:1em;
				font-family:arial, verdana;
			}

		</style>

	</head>
	<body>
		<div id="xmled" class="xmled">
		</div>
		<div>copyright &copy; 2012 <a href='http://ditalabs.com/'>DITALabs</a>. Code hosted at  <a href='http://code.google.com/p/xmled/'>Google</a> </div>
	</body>
</html>
